<?
        require_once('../inc/BillingAddresses.php');
        $id = intval($_REQUEST["id"]);
        $results = GetBAddress($id);
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Billing Address Details</title>        
        <link type="text/css" rel="stylesheet" href="../inc/bootstrap.css" />
    </head>
   
    <body>
    <? include('../inc/header.php'); ?>
    <div class="container">
                        <? include('../inc/nav.php'); ?>
            <div id="contents">
                <table class="table table-striped table-bordered table-condensed table-hover">

                    <tr>
                        <th>User id</th><th>Street Address</th><th>City</th><th>State</th><th>Zip Code</th><th>Created At</th><th>Updated At</th>
                    </tr>
                    <? while($rs = mysql_fetch_assoc($results)): ?>
                        <tr>
                        	<td><?=$rs['Users_id']?></td>
                            <td><?=$rs['street_address']?></td>
                            <td><?=$rs['city']?></td>
                            <td><?=$rs['state']?></td>
                            <td><?=$rs['zip_code']?></td>
                            <td><?=$rs['created_at']?></td>
                            <td><?=$rs['updated_at']?></td>
                        </tr>
                    <? endwhile; ?>                    	
                </table>
            </div>
            <a href="bindex.php">Return to index</a>
        </div>
</body>
</html>